import React,{Component} from "react"
import GlobalStyle from "./style"
import Header from "./common/header"
import { Provider } from "react-redux";
import store from "./store";
import {BrowserRouter, Route} from "react-router-dom"
import Detail from "./pages/detail"
import Home from "./pages/home"
class App extends Component {
  render() {
    return (
    <Provider store={store}>
      <GlobalStyle />
      <Header />
      {/* 使用路由 */}
      <BrowserRouter>
        <Route path="/" exact component={Home}></Route>
        <Route path="/detail" exact component={Detail}></Route>
      </BrowserRouter>
    </Provider>);
  }
}



export default App;
